package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutinePathologySamplingPlatform;
import com.zhijian.medical.entity.vo.request.RoutinePathologySamplingPlatformSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologySamplingPlatformVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutinePathologySamplingPlatformMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutinePathologySamplingPlatform record);

    int insertSelective(RoutinePathologySamplingPlatform record);

    RoutinePathologySamplingPlatform selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutinePathologySamplingPlatform record);

    int updateByPrimaryKey(RoutinePathologySamplingPlatform record);

    /**
     * 查询总数
     *
     * @param routinePathologySamplingPlatformSearchVo
     * @return
     */
    int count(RoutinePathologySamplingPlatformSearchVo routinePathologySamplingPlatformSearchVo);

    /**
     * 查询列表
     *
     * @param routinePathologySamplingPlatformSearchVo
     * @return
     */
    List<RoutinePathologySamplingPlatformVo> selectList(RoutinePathologySamplingPlatformSearchVo routinePathologySamplingPlatformSearchVo);

    /**
     * 查询单个
     *
     * @param routinePathologySamplingPlatformSearchVo
     * @return
     */
    RoutinePathologySamplingPlatformVo selectOne(RoutinePathologySamplingPlatformSearchVo routinePathologySamplingPlatformSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutinePathologySamplingPlatformVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routinePathologySamplingPlatformSearchVo
     * @return
     */
    void deleteByCondition(RoutinePathologySamplingPlatformSearchVo routinePathologySamplingPlatformSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutinePathologySamplingPlatform> entities);
}